<?php

namespace App\Lib;

use Hyperf\Utils\ApplicationContext;
use Psr\Container\ContainerInterface;
use Psr\EventDispatcher\EventDispatcherInterface;

class LibBaseService
{
    /**
     * @var ContainerInterface
     */
    public $container;

    /**
     * @var EventDispatcherInterface
     */
    public $eventDispatcher;


    public function __construct()
    {
        $this->container = ApplicationContext::getContainer();
        $this->eventDispatcher = $this->container->get(EventDispatcherInterface::class);
    }
}